package ar.fiuba.tp7552.buildadmin.webactions.planes;

import java.util.Collection;

import ar.fiuba.tp7552.buildadmin.model.planes.Plan;
import ar.fiuba.tp7552.buildadmin.service.PlanService;
import ar.fiuba.tp7552.buildadmin.webactions.BaseAction;

public class ListPlanesAction extends BaseAction {
	
	PlanService planService;
	private Collection<Plan> planes;

	
	// ~~ Constructor ====================================================
	
	public ListPlanesAction(PlanService planService) {
		super();
		this.planService = planService;
	}
	
	public String getAll() {
		planes = planService.getAll();
		return BaseAction.SUCCESS;
		
	}

	
	// ~~ getters y setters ==============================================

	public Collection<Plan> getPlanes() {
		return planes;
	}


}
